using System;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace Aop.Api.Domain
{
    /// <summary>
    /// Repayment Data Structure.
    /// </summary>
    [Serializable]
    public class Repayment : AopObject
    {
        /// <summary>
        /// 某一还款计划下的分期数据
        /// </summary>
        [XmlArray("installments")]
        [XmlArrayItem("installment")]
        public List<Installment> Installments { get; set; }

        /// <summary>
        /// 用户在合作伙伴处产生的还款计划id
        /// </summary>
        [XmlElement("repayment_id")]
        public string RepaymentId { get; set; }
    }
}
